﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="Business.Products" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DataList ID="dtl_ListProduct" runat="server" Width="100%" 
        RepeatColumns="3" style="text-align: center">
        <ItemTemplate>
            <asp:HyperLink ID="HyperLink1" runat="server" 
                NavigateUrl='<%# "ProductDetails.aspx?id=" + Eval("ProductID") %>' 
                Text='<%# Eval("productName") %>'></asp:HyperLink>
            <br />
            <asp:Image ID="Image1" runat="server" 
                AlternateText='<%# Eval("ProductDescription") %>' Height="160px" 
                ImageUrl='<%# "~/hinhanh/"+ Eval("ProductImage")  %>' 
                ToolTip='<%# "Author: " + Eval("Author") %>' Width="150px" />
            <br />
            <asp:Label ID="Label1" runat="server" 
                style="font-size: 13px; color: #FF0000; font-weight: 700" 
                Text='<%# "$ " +Eval("UnitPrice") %>'></asp:Label>
            &nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" 
                AlternateText='<%# Eval("ProductDescription") %>' 
                CommandName='<%#Eval("ProductID")%>' ImageUrl="book_store/images/cart.gif" 
                oncommand="ImageButton1_Command" />
            <br />
            <br />
        </ItemTemplate>
        <FooterTemplate>
        </FooterTemplate>
    </asp:DataList>
    <center style="color: #0000FF; font-size: 13px; font-weight: 700; background-color: #FFFFFF"><asp:Literal ID="ltlPhanTrang" runat="server"></asp:Literal></center>
</asp:Content>
